Date and Time Utilities
worldwide date and time conversion. The routines convert among various
formats for dates and times, change long dates, modify and verify date and time
records, and read and store geographic locations. For details on related time and
date data structures, see Macintosh Worldwide Development: Guide to System
Converting Worldwide Dates and Times
convert worldwide dates and times.
String2Date Expects the date at beginning of text and parses text for use in the date-time record ( defined by the
String2Time Expects the time at beginning of text and parses text for use in the date-time record
Converting Long Dates
dates between the LongDateRec format (an explicit year, month, day, and so forth) and the LongDateTime format (an 8-byte signed value, seconds since
January 1, 1904).
LongDate2Secs Converts the time specified in a long date record to a LongSecs2Date Converts the date specified in a LongDateTime format to a long date record
Modifying and Verifying Date and Time Records
records and check the validity of the resulting data structures.
ToggleDate Modifies a LongDateTime parameter by toggling one of the corresponding fields of the long date record up or
down or by setting it explicitly.
ValidDate Checks the validity of a long date record Reading and Storing Locations
manipulate, and store the geographic location of the Macintosh and related time
zone information.
ReadLocation Accesses the stored geographic location of the Macintosh and the time zone information from the parameter RAM
WriteLocation Stores the geographic location of the Macintosh and the time zone information in parameter RAM